package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.query.ShopSearchQueryObject;
import cn.wolfcode.luowowo.search.template.ShopDetailTemplate;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IShopDetailTemplateSearchService {
    /**
     * es里添加和更新操作
         * @param shopDetailTemplate
     */
    void saveOrUpdate(ShopDetailTemplate shopDetailTemplate);

    /**
     * 封装商品左侧导航栏
     * @return
     */
    List<Map<String,Object>> selectByThemeId(int type);

    /**
     * 找出所有子菜单
     * @return
     */
    List<StatisVO> selectByParentIdIsNull();

    /**
     * 异步分页通过子菜单找到相应的商品
     * @param qo
     * @return
     */
    Page query(ShopSearchQueryObject qo);
}
